﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ItemsServicesDataSrc" targetNamespace="http://tempuri.org/ItemsServicesDataSrc.xsd" xmlns:mstns="http://tempuri.org/ItemsServicesDataSrc.xsd" xmlns="http://tempuri.org/ItemsServicesDataSrc.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="HMSIndiaConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="HMSIndiaConnectionString (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Horizon.HMS.MySettings.GlobalReference.Default.HMSIndiaConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ViewItemsServicesTableAdapter" GeneratorDataComponentClassName="ViewItemsServicesTableAdapter" Name="ViewItemsServices" UserDataComponentName="ViewItemsServicesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="HMSIndiaConnectionString (MySettings)" DbObjectName="HMSIndia.dbo.ViewItemsServices" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillItems" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="FillItems" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="FillItems">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ItemNo, Name, Category, Rate, UOM, Remarks, IsInventoryItem, SubCategory, ROL FROM dbo.ViewItemsServices WHERE IsInventoryItem = 1</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ItemNo" DataSetColumn="ItemNo" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Category" DataSetColumn="Category" />
              <Mapping SourceColumn="Rate" DataSetColumn="Rate" />
              <Mapping SourceColumn="UOM" DataSetColumn="UOM" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsInventoryItem" DataSetColumn="IsInventoryItem" />
              <Mapping SourceColumn="SubCategory" DataSetColumn="SubCategory" />
              <Mapping SourceColumn="ROL" DataSetColumn="ROL" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="HMSIndiaConnectionString (MySettings)" DbObjectName="HMSIndia.dbo.ViewItemsServices" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillServicesBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillServicesBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillServicesBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ItemNo, Name, Category, Rate, UOM, Remarks, IsInventoryItem, SubCategory, ROL FROM dbo.ViewItemsServices WHERE IsInventoryItem = 0</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ItemsServicesDataSrc" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="ItemsServicesDataSrc" msprop:Generator_UserDSName="ItemsServicesDataSrc">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ViewItemsServices" msprop:Generator_TableClassName="ViewItemsServicesDataTable" msprop:Generator_TableVarName="tableViewItemsServices" msprop:Generator_RowChangedName="ViewItemsServicesRowChanged" msprop:Generator_TablePropName="ViewItemsServices" msprop:Generator_RowDeletingName="ViewItemsServicesRowDeleting" msprop:Generator_RowChangingName="ViewItemsServicesRowChanging" msprop:Generator_RowEvHandlerName="ViewItemsServicesRowChangeEventHandler" msprop:Generator_RowDeletedName="ViewItemsServicesRowDeleted" msprop:Generator_RowClassName="ViewItemsServicesRow" msprop:Generator_UserTableName="ViewItemsServices" msprop:Generator_RowEvArgName="ViewItemsServicesRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ItemNo" msprop:Generator_ColumnVarNameInTable="columnItemNo" msprop:Generator_ColumnPropNameInRow="ItemNo" msprop:Generator_ColumnPropNameInTable="ItemNoColumn" msprop:Generator_UserColumnName="ItemNo">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Category" msprop:Generator_ColumnVarNameInTable="columnCategory" msprop:Generator_ColumnPropNameInRow="Category" msprop:Generator_ColumnPropNameInTable="CategoryColumn" msprop:Generator_UserColumnName="Category">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Rate" msprop:Generator_ColumnVarNameInTable="columnRate" msprop:Generator_ColumnPropNameInRow="Rate" msprop:Generator_ColumnPropNameInTable="RateColumn" msprop:Generator_UserColumnName="Rate" type="xs:double" minOccurs="0" />
              <xs:element name="UOM" msprop:Generator_ColumnVarNameInTable="columnUOM" msprop:Generator_ColumnPropNameInRow="UOM" msprop:Generator_ColumnPropNameInTable="UOMColumn" msprop:Generator_UserColumnName="UOM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsInventoryItem" msprop:Generator_ColumnVarNameInTable="columnIsInventoryItem" msprop:Generator_ColumnPropNameInRow="IsInventoryItem" msprop:Generator_ColumnPropNameInTable="IsInventoryItemColumn" msprop:Generator_UserColumnName="IsInventoryItem" type="xs:boolean" minOccurs="0" />
              <xs:element name="SubCategory" msprop:Generator_ColumnVarNameInTable="columnSubCategory" msprop:Generator_ColumnPropNameInRow="SubCategory" msprop:Generator_ColumnPropNameInTable="SubCategoryColumn" msprop:Generator_UserColumnName="SubCategory" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ROL" msprop:Generator_ColumnVarNameInTable="columnROL" msprop:Generator_ColumnPropNameInRow="ROL" msprop:Generator_ColumnPropNameInTable="ROLColumn" msprop:Generator_UserColumnName="ROL" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>